﻿///<reference path="../BLL/TestService.cs.ts">
async function Show() {
    try {
        let win = window as any;
        let testService = new WpfTest.BLL.TestService();
        let r = await testService.Add(1, (userList) => {
            alert(userList.length);
            for (var i = 0; i < userList.length; i++) {
                alert(userList[i].Name)
                alert(userList[i].Age)
                return true;
            }
        });
    }
    catch(err) {
        alert(err.ErrorMessage);
    }
}